getPreferenceInt

fun getPreferenceInt(key: String, defaultValue: Int): Int

Returns the integer value associated with the given key in the local data file-specific preferences